<?php

namespace App\Enums;

use App\Traits\EnumTrait;

/**
 * @method static self BIZ_TYPE_RENT
 * @method static self BIZ_TYPE_STAGE
 * @method static self BIZ_TYPE_FULL_PAYMENT
 */
class OrderEnum extends \PhpEnum\PhpEnum
{
    use EnumTrait;

    const BIZ_TYPE_RENT = [100, '租赁业务'];
    const BIZ_TYPE_STAGE = [200, '分期业务'];
    const BIZ_TYPE_FULL_PAYMENT = [300, '全款业务'];

    protected function construct($key, $name)
    {
        $this->key = $key;
        $this->name = $name;
    }
}
